repeat with i=1 to number of lines in card field "cost"
add to runningtotal
end repeat
put runningTotal into card field "total"
end closefield
-- part 5 (button)
-- low flags: 00
-- high flags: A004
-- rect: left=201 top=282 right=300 bottom=245
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Total
----- HyperTalk script -----
on mouseUp
set numberFormat to "00.00"
get card field "own 2" + card field "own 3"+ card field "own 4" + card field "own 5" + card field "own 6" + card field "own 7" + card field "own 8" + card field "own 9" + card field "own 1" + card field "own 10"
put it into card field "total own"
end mouseUp
-- part 8 (field)
-- low flags: 00
-- high flags: 0000
-- rect: left=196 top=229 right=244 bottom=262
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Own 10
-- part 9 (field)
-- low flags: 00
-- high flags: 0000
-- rect: left=196 top=213 right=228 bottom=262
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Own 9
-- part 10 (field)
-- low flags: 00
-- high flags: 0000
-- rect: left=196 top=197 right=212 bottom=262
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Own 8
-- part 11 (field)
-- low flags: 00
-- high flags: 0000
-- rect: left=196 top=181 right=196 bottom=262
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Own 7
-- part 12 (field)
-- low flags: 00
-- high flags: 0000
-- rect: left=196 top=165 right=180 bottom=262
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Own 6
-- part 13 (field)
-- low flags: 00
-- high flags: 0000
-- rect: left=196 top=149 right=164 bottom=262
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Own 5
-- part 14 (field)
-- low flags: 00
-- high flags: 0000
-- rect: left=196 top=133 right=148 bottom=262
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Own 4
-- part 15 (field)
-- low flags: 00
-- high flags: 0000
-- rect: left=196 top=117 right=132 bottom=262
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Own 3
-- part 16 (field)
-- low flags: 00
-- high flags: 0000
-- rect: left=196 top=101 right=116 bottom=262
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Own 2
-- part 17 (field)
-- low flags: 00
-- high flags: 0000
-- rect: left=196 top=85 right=100 bottom=262
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Own 1
-- part 18 (field)
-- low flags: 00
-- high flags: 0000
-- rect: left=309 top=85 right=100 bottom=375
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: rent 1
-- part 19 (field)
-- low flags: 00
-- high flags: 0000
-- rect: left=309 top=101 right=116 bottom=375
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: rent 2
-- part 20 (field)
-- low flags: 00
-- high flags: 0000
-- rect: left=309 top=117 right=132 bottom=375
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: rent 3
-- part 21 (field)
-- low flags: 00
-- high flags: 0000
-- rect: left=309 top=133 right=148 bottom=375
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: rent 4
-- part 22 (field)
-- low flags: 00
-- high flags: 0000
-- rect: left=309 top=149 right=164 bottom=375
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: rent 5
-- part 23 (field)
-- low flags: 00
-- high flags: 0000
-- rect: left=309 top=165 right=180 bottom=375
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: rent 6
-- part 24 (field)
-- low flags: 00
-- high flags: 0000
-- rect: left=309 top=181 right=196 bottom=375
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: rent 7
-- part 25 (field)
-- low flags: 00
-- high flags: 0000
-- rect: left=309 top=197 right=212 bottom=375
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: rent 8
-- part 26 (field)
-- low flags: 00
-- high flags: 0000
-- rect: left=309 top=213 right=228 bottom=375
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: rent 9
-- part 27 (field)
-- low flags: 00
-- high flags: 0000
-- rect: left=309 top=229 right=244 bottom=375
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: rent 10
-- part 29 (button)
-- low flags: 00
-- high flags: A004
-- rect: left=310 top=280 right=299 bottom=352
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Total
----- HyperTalk script -----
on mouseUp
get card field "rent 2" + card field "rent 3"+ card field "rent 4" + card field "rent 5" + card field "rent 6" + card field "rent 7" + card field "rent 8" + card field "rent 9" + card field "rent 1"
put it into card field "total rent"
end mouseUp
-- part 30 (field)
-- low flags: 00
-- high flags: 4000
-- rect: left=308 top=254 right=271 bottom=366
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: total rent
-- part 31 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=186 top=54 right=82 bottom=217
-- title width / last selected line: 0
-- icon id / first selected line: 1015 / 1015
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Boing
-- part 32 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=301 top=57 right=82 bottom=327
-- title width / last selected line: 0
-- icon id / first selected line: 1015 / 1015
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Boing
----- HyperTalk script -----
on mouseUp
set numberFormat to "00.00"
put card field "own 1" into card field "rent 1"
put card field "own 2" / 100 * card field "h1" of card "1st" into card field "rent 2"
put card field "own 3" into card field "rent 3"
put card field "own 4" / 100 * card field "h1" of card "1st" into card field "rent 4"
put card field "own 5" into card field "rent 5"
put card field "own 6" / 100 * card field "h1" of card "1st" into card field "rent 6"
put card field "own 7" into card field "rent 7"
put card field "own 9" * 10 / 100 into card field "rent 9"